/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity.cate_gory;

import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonBackReference;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 分类Entity
 * @author xfj
 * @version 2019-05-15
 */
public class Cate_Gory extends DataEntity<Cate_Gory> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名字
	private String img;		// 图标
	private String url;		// 链接
	private String categorytype;		// 分类类型
	private String parent_id;		// 父ID
	
	public Cate_Gory() {
		super();
	}

	public Cate_Gory(String id){
		super(id);
	}

	@Length(min=0, max=225, message="名字长度必须介于 0 和 225 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=225, message="图标长度必须介于 0 和 225 之间")
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	@Length(min=0, max=225, message="链接长度必须介于 0 和 225 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=225, message="分类类型长度必须介于 0 和 225 之间")
	public String getCategorytype() {
		return categorytype;
	}

	public void setCategorytype(String categorytype) {
		this.categorytype = categorytype;
	}

	public String getParent_id() {
		return parent_id;
	}

	public void setParent_id(String parent_id) {
		this.parent_id = parent_id;
	}
}